Adwaita: tooltip fixes
authorLapo Calamandrei <calamandrei@gmail.com>
Fri, 5 Sep 2014 14:17:00 +0000 (16:17 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Fri, 5 Sep 2014 14:17:00 +0000 (16:17 +0200)
The "too dark" background was caused by box-shadow inherited by
window-frame.csd, so box-shadow: none and the right background
color on tooltip selector.

gtk/resources/theme/Adwaita/_common.scss
gtk/resources/theme/Adwaita/gtk-contained-dark.css
gtk/resources/theme/Adwaita/gtk-contained.css

index 032a292104db36bb07af7c13327a1ec3f86b722a..c1bd858ddf905311fbcb0bccbfeeb20e28434ff8 100644 (file)
@@ -2574,7 +2574,9 @@ GtkInfoBar {
   background-color: transparentize(black, 0.5); // FIXME: I think this is not
                                                 //        what I get, it looks
                                                 //        more solid.
+  box-shadow: none; // otherwise it gets inherited by windowframe.csd
   text-shadow: 0 1px black;
+  // FIXME: we need a border or tooltips vanish on black background.
 }
 
 .tooltip * { //Yeah this is ugly
index b3a73f36e061152bee804925c1407e454dfd91b3..9e4d4f4fa8c5fe0bb3dac2e3626995b54a05d9dc 100644 (file)
@@ -3969,6 +3969,7 @@ GtkInfoBar {
   /* not working */
   border-radius: 5px;
   background-color: rgba(0, 0, 0, 0.5);
+  box-shadow: none;
   text-shadow: 0 1px black; }
 
 .tooltip * {
index 62d414a87c0705ac1debc24418a4a49152373e19..f5f8a455ab0bd42cb3ad1c307a4413288172d90c 100644 (file)
@@ -4116,6 +4116,7 @@ GtkInfoBar {
   /* not working */
   border-radius: 5px;
   background-color: rgba(0, 0, 0, 0.5);
+  box-shadow: none;
   text-shadow: 0 1px black; }
 
 .tooltip * {